-
-
Notifications
You must be signed in to change notification settings - Fork 180
Addition of Unit Tests for LicenseDropdown.vue #145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a great start, @Tanmay1201 !
I have left some comments on styling and writing the tests. Also, you might find this article helpful, it really helped me understand what tests I should write and how should I write them.
| @@ -1,67 +1,69 @@ | |||
| <template> | |||
| <b-field class="license-dropdown"> | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that your editor is applying some styling changes that are incompatible with the style of this repo. Could you please run a linter before committing files? (npm run-script lint)
| }); | ||
| }); | ||
|
|
||
| it("Has the field tag", () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When testing multiple markup features (field tag, option tag, etc) it is better to use snapshot testing, because it checks for multiple features in one test.
| expect(wrapper.emitted().input).toBeTruthy(); | ||
| }); | ||
|
|
||
| it("Checks whether select element is getting triggered", () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test doesn't seem to test anything.
|
@Tanmay1201 What is the status of this PR? If you can't work on it anymore, I will close it. |
Hey @obulat , I have resumed working on this again, and will resolve it ASAP |
|
Hey @Tanmay1201, are you still interested in working on this? |
|
I am closing this PR due to lack of activity. If you want to start working on it again, please don't hesitate to reopen, @Tanmay1201 |
Fixes #120
Description
Added unit test cases for the component LicenseDropdown.vue using Jest
Checklist
Update index.md).masterbranch of the repository.visible errors.
Developer Certificate of Origin